package com.jml.装饰模式;

public class PacketHtmlHanderCreator extends PacketDecorator {

  public PacketHtmlHanderCreator(IPacketCreator component) {
    super(component);
  }

  @Override
  public String handleContent() {
    StringBuffer sb = new StringBuffer();
    sb.append("<html>");
    sb.append("<body>");

    sb.append(component.handleContent());

    sb.append("</html>");
    sb.append("</body>");
    return sb.toString();
  }
}
